package com.yict.csms.system.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 预算编号表Entity
 * @author ryan.wang
 *
 */
@Entity
@Table(name = "CSMS_BUDGET_NUM")
public class BudgetNum {
	
	@Id
	@Column(name = "NUMID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "csms_budgetNum_seq")
	@SequenceGenerator(name = "csms_budgetNum_seq", sequenceName = "SEQ_CSMS_BUDGETNUM", allocationSize = 1, initialValue = 1)
	private Long numId;
	
	@Column(name = "BUDGETNUM")
	private String budgetNum;
	
	@Column(name = "BUDCNAME")
	private String budCName;
	
	@Column(name = "BUDENAME")
	private String budEName;
	
	@Column(name = "BUDTYPE")
	private String budType;
	
	@Column(name = "CREATEDATE")
	private Date createDate;

	@Column(name = "UPDATEDATE")
	private Date updateDate;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CREATEPERSON")
	private User createPerson;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "UPDATEPERSON")
	private User updatePerson;

	public Long getNumId() {
		return numId;
	}

	public void setNumId(Long numId) {
		this.numId = numId;
	}

	public String getBudgetNum() {
		return budgetNum;
	}

	public void setBudgetNum(String budgetNum) {
		this.budgetNum = budgetNum;
	}

	public String getBudCName() {
		return budCName;
	}

	public void setBudCName(String budCName) {
		this.budCName = budCName;
	}

	public String getBudEName() {
		return budEName;
	}

	public void setBudEName(String budEName) {
		this.budEName = budEName;
	}

	public String getBudType() {
		return budType;
	}

	public void setBudType(String budType) {
		this.budType = budType;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public User getCreatePerson() {
		return createPerson;
	}

	public void setCreatePerson(User createPerson) {
		this.createPerson = createPerson;
	}

	public User getUpdatePerson() {
		return updatePerson;
	}

	public void setUpdatePerson(User updatePerson) {
		this.updatePerson = updatePerson;
	}

}
